package fangzhiyi.test;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/18 18:52
 * @description
 */
public class Calculaion {
    public double num1;
    public double num2;

    public Calculaion() {
    }

    public Calculaion(double num1, double num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    public double add(){
        return num1+num2;
    }

    public double sub(){
        return num1-num2;
    }
    public double times(){
        return num1*num2;
    }
    public double div(){
        return num1/num2;
    }
}
